package com.usian.type.service.impl;

import com.usian.type.mapper.TypeMapper;
import com.usian.commom.pojo.Type;
import com.usian.type.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 10 28 14 08
 **/

@Service
public class TypeServiceImpl implements TypeService {
   @Autowired

   TypeMapper typeMapper;

    @Override
    public List<Type> findAll() {
        return typeMapper.findAll();
    }

    @Override
    public Type findById(Integer id) {
        return typeMapper.findById(id);
    }
}
